#include<stdio.h>
int main()
{
    //freopen("in.txt","r",stdin);
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d %.5f",a/b,a%b,a/(b*1.0));
}